package com.zxb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.zxb.pojo.Order;
import com.zxb.service.OrderService;
@RestController
public class OrderController {
	@Autowired
	private OrderService orderService;
	@GetMapping("/order/orderId")
	public Order queryOrderById(@PathVariable(name="orderId")String orderId){
		return orderService.queryOrderById(orderId);
	}

}
